home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1997 August
/
Oasis demo.iso
/
Internet
/
Wincim
/
32bit
/
SCRIPTS.LIB
/
TRANSPAC.SCR
< prev
next >
Wrap
Text File
|
1997-01-30
|
1KB
|
64 lines
!
! Copyright (c) 1997
! by CompuServe Incorporated, Columbus, Ohio
!
! The information in this software is subject to change without
! notice and should not be construed as a commitment by CompuServe.
!
! Transpac:
! Connect to Transpac
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "4.0"
!-V
CompuServe_NUA = "19628030";
Tries = 5;
twice_tried = %FALSE;
on cancel goto Return_Cancel;
show "Connecting to Transpac";
Wait_Transpac:
if Tries = 0 goto Transpac_Failure;
Tries = Tries - 1;
if Tries = 4 goto Send_Address; ! First time through, blind send
wait
"TRANSPAC" goto Send_Address,
"ERROR" goto Resend_Address,
"CLR" goto Resend_Address,
%mdm_Failure goto Transpac_Failure,
"COM" goto Return_Success
until 80;
send %CR;
goto Send_Address;
Resend_Address:
if twice_tried = %TRUE goto Cserve_NUA_Failure;
twice_tried = %TRUE;
Send_Address:
show "Sending CompuServe NUA...";
send CompuServe_NUA & %CR;
goto Wait_Transpac;
Transpac_Failure:
define %FailureMsg = "Transpac not responding";
goto Return_Failure;
Cserve_NUA_Failure:
define %FailureMsg = "Transpac not accepting CompuServe NUA";
Return_Failure:
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;